package com.xian.cloud.resoure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: xlr
 * @Date: Created in 上午12:06 2018/11/2
 */
@ConfigurationProperties(CloudConfigSupportProperties.CONFIG_PREFIX)
public class CloudConfigSupportProperties {


    public static final String CONFIG_PREFIX = "spring.cloud.config.backup";

    private boolean enable = false;

    private String file = "backup.properties";

    public static String getConfigPrefix() {
        return CONFIG_PREFIX;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }
}
